﻿using System;

class ReverseWords
{
    static void Main()
    {
        Console.WriteLine("Enter a sentence:");
        string sentence = Console.ReadLine();
        string[] words = sentence.Split(' ',',', '.', '!');
        for (int index = words.Length - 1; index >= 0; index--)
        {
            Console.Write(words[index] + " ");
        }

    }
}

